import { getUserInfoUrl } from "@/command/apiTool";
import { useDetail } from "@/hooks";

export const useRequest = () => {
  const [personInfo] = useDetail(
    getUserInfoUrl({
      dh: "/api/H5/gov/perCenter/personCenterMsg",
      xh: "/api/H5/gov/perCenter/personCenterMsg",
    }),
    {
      address: "",
      areaCode: "",
      areaName: "",
      countryCode: "",
      countryName: "",
      id: "",
      logo: "",
      name: "",
      phone: "",
      sex: "",
      smFlag: "",
    }
  );
  return {
    personInfo,
  };
};
